//
//  NavigationController.m
//  QuickCare
//
//  Created by lidabiao on 16/7/10.
//  Copyright © 2016年 lidabiao. All rights reserved.
//

#import "NavigationController.h"

@interface NavigationController ()

@end

@implementation NavigationController

- (void)viewDidLoad
{
    [super viewDidLoad];
    //设置导航栏的背景图片
    [self.navigationBar setBackgroundImage:[UIImage imageNamed:@"nav"] forBarMetrics:UIBarMetricsDefault];
    //设置导航栏的控件颜色
    [self.navigationBar setTintColor:[UIColor whiteColor]];
    //设置导航栏的文字颜色
    [self.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor]}];
    //修改返回按钮的颜色
    self.navigationBar.tintColor = [UIColor whiteColor];
    
}

-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    //隐藏底部bar
    viewController.hidesBottomBarWhenPushed = YES;
    
    [super pushViewController:viewController animated:animated];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
